import wx

class MyMenu():
  def __init__(self, parent):
    self.menuBar = wx.MenuBar()
    
    '''
    self.file = wx.Menu()
    self.open = self.file.Append(-1, 'Open')
    self.save = self.file.Append(-1, 'Save')
    self.saveas = self.file.Append(-1, 'Save As...')
    self.file.AppendSeparator()	
    self.close = self.file.Append(-1, 'Exit')
    #self.menuBar.Append(self.file, 'File(&F)')
    
    self.edit = wx.Menu()
    self.undo = self.edit.Append(-1, 'Undo')
    self.redo = self.edit.Append(-1, 'Redo')
    self.edit.AppendSeparator()
    self.cut = self.edit.Append(-1, 'Cut')
    self.copy = self.edit.Append(-1, 'Copy')
    self.paste = self.edit.Append(-1, 'Paste')
    self.edit.AppendSeparator()
    self.selectall = self.edit.Append(-1, 'Select All')
    #self.menuBar.Append(self.edit,'Edit(&E)')
    
    self.view = wx.Menu()
    self.color = self.view.AppendCheckItem(1051, 'Set black')
    self.trans = self.view.Append(-1, 'transparent')
    #self.menuBar.Append(self.view, 'View(&V)')
    '''
    
    self.option = wx.Menu()
    self.font = self.option.Append(-1, 'Font')
    self.menuBar.Append(self.option, 'Option(&V)')
    
    self.help = wx.Menu()
    self.about = self.help.Append(20, 'About')
    self.menuBar.Append(self.help, 'Help(&H)')
    parent.SetMenuBar(self.menuBar)	
    
    parent.Bind(wx.EVT_MENU, self.OnAbout, id=20)
  
  def OnAbout(self, event):
    info = wx.AboutDialogInfo()
    info.Name = 'everydoc'
    info.Version = '0.1'
    info.Copyright = "(C) 2010 by dstcode"
    info.Description = 'client for google docs'
    info.WebSite = ("http://code.google.com/p/everydoc/", "everydoc home page")
    info.Developers = [ "dstcode", ]
    wx.AboutBox(info)
